<?php

include_once "../CF_mysql_com.php";
include_once "SetupSql.php";

if(isset($_REQUEST['login'])){
	$login = $_REQUEST['login'];
}
else{
	$login = 'root';
}

if(isset($_REQUEST['pass'])){
	$pass = $_REQUEST['pass'];
}
else{
	$pass = '';
}


// create database


$setupClass = new SetupSql;

//$setupClass->sqlfile = "quickcrudall.sql";

//$setupClass->ImportFile();
//$setupClass->PrintCommands();

$setupClass->DoSetupSQL('setup_qc_permission.sql', $login ,$pass, 'localhost');
$setupClass->sqlfile = "quickcrudall.sql";
$setupClass->SetDB('quickcrud');
$setupClass->ImportFile();
$setupClass->RunCommands();



?>
<html>
<head>
<title>QuickCrud Setup Complete</title>
</head>
<body>
<h2>Setup Complete</h2>
<h3>Remeber to delete this setup directory (or at least don't run it again!) so not to mess up your installation</h3>
</body>
</html>